<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>游戏供货规则列表</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "../template/include/assign.ftl">
<#include "../template/include/source.ftl">
<#include "../template/template_listPage.ftl">
<link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.page{
		float:right;
		padding-top: 15px;
		margin-right: 15px;
	}
</style>
<script type="text/javascript">
    $().ready( function() {
    <#if actionErrors??&&(actionErrors?size > 0)>
        $.dialog({type: "warn", content: "<#list errorMessages as list>${list}<br></#list>",
            modal: true, autoCloseTime: 3000});
    </#if>
    });
</script>
</head>
<body class="list">
	<div class="body">
		<div class="listBar">
			<h1><span class="icon">&nbsp;</span>游戏供货规则列表&nbsp;<span class="pageInfo"></span></h1>
		</div>
		<@pageList page=(page!) id="listForm" action="${web_base}/game/game_supply_rule!list.htm" query="gameSupplyRuleQuery" isEmpty=true>
			<div class="operateBar">
				<input type="button" onclick="location.href='${web_base}/game/game_supply_rule!add.htm'" value="添加供货规则" />
				
				<label>查找:</label>
					商品编号：<input type="text" name="gameSupplyRuleQuery.goodsId"  value="<#if gameSupplyRuleQuery??>${(gameSupplyRuleQuery.goodsId)!}</#if>" />
					商品名称：<input type="text" name="gameSupplyRuleQuery.goodsName"  value="<#if gameSupplyRuleQuery??>${(gameSupplyRuleQuery.goodsName)!}</#if>" />

					<input type="submit" id="searchButton" class="searchButton" value="" />
			</div>
			<table class="listTable">
				<tr>
					<th>
						<span class="sort" name="goodsId">商品编号</span>
					</th>
					<th>
						<span class="sort" name="goodsName">商品名称</span>
					</th>
					<th>
						<span class="sort" name="goodsPriceDifference">商品差价(元)</span>
					</th>
                    <th>
                        <span class="sort" name="insertTime">录入时间</span>
                    </th>
                    <th>
                        <span class="sort" name="modifyTime">更新时间</span>
                    </th>
                    <th>
                        <span class="sort" name="operator">操作员</span>
                    </th>
					<th width="80">操&nbsp;作<th/>
				</tr>
				
				<#if page?? && page.list?? && (page.list?size gt 0)>
				<#list page.list as obj>
					<tr>
                        <td style="display: none;">
                        ${(obj.id)!}
                        </td>
						<td>
							${(obj.goodsId)!}
						</td>
						<td>
                                <#if obj.goodsName?? && obj.goodsName?length gte 15>
                                <#--//截取输出文字的长度-->
                                ${obj.goodsName?substring(0,15)}...
                                <#else>
                                ${(obj.goodsName)!}
                                </#if>
						</td>
                        <td>
                        ${(obj.goodsPriceDifference*1.0/1000)?string("0.000")!}
                        </td>
                        <td>
                        ${(obj.insertTime)!}
                        </td>
                        <td>
                        ${(obj.modifyTime)!}
                        </td>
                        <td>
                        ${(obj.operator)!}
                        </td>
						<td width="80">
							<a href="${web_base}/game/game_supply_rule!toEdit.htm?id=${(obj.id)!}" title="编辑">[编辑]</a>
                            <a href="${web_base}/game/game_supply_rule!queryById.htm?id=${(obj.id)!}" title="详情">[详情]</a>
						</td>
					</tr>
				</#list>
                </#if>
			</table>
			
			<#if page?? && page.list?? && (page.list?size <= 0)>
				<div class="noRecord">
					没有找到任何记录!
				</div>
			</#if>
		</@pageList>
	</div>
	
</body>
</html>